package com.gba.mark.user.mapper.permission;


import com.gba.mark.user.entity.permission.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {
//
//    @Select("SELECT `user_id`,'group_id'" +
//            " FROM `user_role` " +
//            "ORDER BY RAND() " )
//    List<Integer> getUserId_groupIdList();
//
//    @Select("SELECT `user_id` FROM `user_role` " +
//            "ORDER BY RAND() " )
//    List<Integer> getUserIdList();
//
//    @Select("SELECT `group_id` FROM `user_role` " +
//            "WHERE `user_id` = #{userId}" +
//            "ORDER BY RAND() " )
//    List<Integer> getGroupIdList(@Param("user_id") Integer userId);
}
